/*
 * @Author: 聆风
 * @Date: 2025-08-24 15:58:22
 * @LastEditors: 聆风 522361856@qq.com
 * @LastEditTime: 2025-08-24 16:23:05
 * @FilePath: \​monoFE​​\apps\vue3-example\src\router\index.ts
 * 
 * Copyright (c) 2025 by 聆风, All Rights Reserved. 
 */
import { createRouter, createWebHashHistory } from 'vue-router'
import ErrorDetail from '../views/ErrorDetail.vue'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'errorDetail',
      component: ErrorDetail,
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue'),
    },
    {
      path: '/trigger',
      name: 'trigger',
      component: () => import('../views/ErrorView.vue'),
    },
  ],
})

export default router
